using System;
using System.Collections.Generic;
using System.Text;

namespace stockinfo
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.Write("Stock Symbol: ");
      string stockSymbol = Console.ReadLine();

      Stock stock = new Stock(stockSymbol);
      stock.UpdateFromMarket();
      Console.WriteLine("Description: " + stock.ToString());
      Console.WriteLine("  Company Name: " + stock.CompanyName);
      Console.WriteLine("  Stock Symbol: " + stock.StockSymbol);
      Console.WriteLine("      Exchange: " + stock.Exchange);
      Console.WriteLine("    Last Trade: " + stock.LastTrade);
      Console.WriteLine("        Change: " + stock.Change);
      Console.WriteLine("    Pct Change: " + stock.PctChange + "%");
      Console.WriteLine("       Day Low: " + stock.DayLow);
      Console.WriteLine("      Day High: " + stock.DayHigh);
      Console.WriteLine("        Volume: " + stock.Volume);
      Console.WriteLine("     Timestamp: " + stock.LastUpdateDate);

      string stopit = Console.ReadLine();
    }
  }
}
